﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.CustomerLoginControl"
    CodeBehind="CustomerLogin.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="Captcha" Src="~/Modules/Captcha.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="Topic" Src="~/Modules/Topic.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="PasswordRecovery" Src="~/Modules/CustomerPasswordRecovery.ascx" %>

<div class="login-page">
    <div class="page-title">
        Логин
    </div>
    <div class="clear">
    </div>
    <div class="wrapper">
    <div class="returning-wrapper">
      <asp:Panel ID="pnlLogin" runat="server" DefaultButton="LoginForm$LoginButton" CssClass="login-block">
                <asp:Login ID="LoginForm" TitleText="" OnLoggedIn="OnLoggedIn" OnLoggingIn="OnLoggingIn"
                    runat="server" CreateUserUrl="~/register.aspx" DestinationPageUrl="~/Default.aspx"
                    OnLoginError="OnLoginError" RememberMeSet="True" FailureText="<% $NopResources:Login.FailureText %>" Width="100%">
                    <LayoutTemplate>
                        <table class="login-table-container" border="0" cellspacing="0" cellpadding="4">
                            <tbody>
                                <tr class="row">
                                    <td class="item-name">
                                        <asp:Label runat="server" ID="lblUsernameOrEmail" Text="E-mail" AssociatedControlID="UserName" />:
                                    </td>
                                    <td class="item-value">
                                        <asp:TextBox ID="UserName" runat="server" CssClass="reg_textbox"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="row">
                                  <td>
                                    &nbsp;
                                  </td>
                                  <td class="item-name">
                                    <asp:RequiredFieldValidator ID="UserNameOrEmailRequired" runat="server" ControlToValidate="UserName" Display="Dynamic"
                                            ErrorMessage="Username is required." ToolTip="Username is required." ValidationGroup="LoginForm"></asp:RequiredFieldValidator>
                                  </td>
                                </tr>
                                <tr class="row">
                                    <td class="item-name">
                                        <asp:Label runat="server" ID="lblPassword" Text="<% $NopResources:Login.Password %>"
                                            AssociatedControlID="Password" />:
                                    </td>
                                    <td class="item-value">
                                        <asp:TextBox ID="Password" TextMode="Password" runat="server" MaxLength="50" CssClass="reg_textbox"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr class="row">
                                  <td>
                                    &nbsp;
                                  </td>
                                  <td class="item-name">
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Display="Dynamic"
                                            ErrorMessage="<% $NopResources:Login.PasswordRequired %>" ToolTip="<% $NopResources:Login.PasswordRequired %>"
                                            ValidationGroup="LoginForm"></asp:RequiredFieldValidator>  
                                  </td>
                                </tr>
                                <tr class="row">
                                    <td></td>
                                    <td class="item-value">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="<% $NopResources:Login.RememberMe %>">
                                        </asp:CheckBox>
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td class="message-error" colspan="2">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td></td>
                                    <td align="left">
                                      <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="" ValidationGroup="LoginForm" CssClass="loginbutton" />
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td class="title2" colspan="2">
                                        Забыли имя пользователя/пароль?
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td colspan="2">
                                        <nopCommerce:PasswordRecovery ID="ctrlPasswordRecovery" runat="server" />  
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td class="title2" colspan="2">
                                        Еще не зарегистрированы? 
                                        <asp:HyperLink ID="hlRegister" runat="server" NavigateUrl="~/register.aspx"
                                            Text="Нажмите здесь" CssClass="title2"></asp:HyperLink>
                                    </td>
                                </tr>
                                
                            </tbody>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </asp:Panel>
        </div>
        
    </div>
    <div class="clear">
    </div>
    <nopCommerce:Topic ID="topicLoginRegistrationInfoText" runat="server" TopicName="LoginRegistrationInfo"
        OverrideSEO="false"></nopCommerce:Topic>
</div>
